/*
 * ============================================================================
 * Copyright Notice!
 * ----------------------------------------------------------------------------
 * This file contains proprietary and confidential information belonging to the
 * group of people involvled in developing this project.  Reproduction, disclosure 
 * or use without specific written authorization from project stake holders is 
 * prohibited. Please refer the readme.txt in project installation folder for more
 * specific contacts
 *
 * All rights reserved.
 * ============================================================================
 */
package edu.uwm.universitydb.service.login;

import edu.uwm.universitydb.framework.exception.DataAccessException;
import edu.uwm.universitydb.model.User;

/**
 * Service contract for application login
 * 
 * @author Shyam Nair
 */
public interface LoginService
{
    /**
     * contract for application login method.
     * Class implementing this method will be responsible for connecting to DB
     * using the url, userName and password and fetch the roles associated with user.
     * 
     * @param userName
     * @param password
     * @return
     */
    User login(final String userName, final String password) throws DataAccessException;
}
/*
 * ============================================================================
 * Change History
 * ----------------------------------------------------------------------------
 * Apr 9, 2014   Shyam Nair
 * File created
 * ----------------------------------------------------------------------------
 */